<?php
    class Admincp_Form_ValidateFashion
    {
        public function validName($name)
        {
            $validate = new Zend_Validate_StringLength(1,100);
		    if($validate->isValid($name)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
        
        public function validPrice($price)
        {
            $validate = new Zend_Validate_StringLength(1,10);
            if($validate->isValid($price)) {
                $validate = new Zend_Validate_Digits();
                if($validate->isValid($price)) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return false;
            }
        }
        
        public function validImage($image)
        {
            $validate = new Zend_Validate_NotEmpty();
		    if($validate->isValid($image)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
    }
